package model.commands.environment;

import model.Environment;
import model.SyntaxErrorException;
import model.commands.Command;


/**
 * Name:
 * TELLEVEN
 * 
 * Description:
 * sets commandables that will follow commands hereafter to the ones with even ID numbers
 * returns last commandable's ID value
 * 
 * note, unlike the previous command, this one does not create any new commandables
 * note, if more than one commandable is active, commands run return value associated with the last
 * active commandable
 * 
 * @author Erick Gonzalez
 */
public class TellEvenCommand extends Command {

    @Override
    public int evaluate (Environment e) throws SyntaxErrorException {
        e.activateCommandables(2, true);
        return 1;
    }

}
